<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
namespace Home\Controller;

use Think\ManageBaseController;

/**
 * 前台公共控制器
 * 为防止多分组Controller名称冲突，公共Controller名称统一使用分组名称
 */
class HomeController extends ManageBaseController {
	
	/* 空操作，用于输出404页面 */
	public function _empty() {
		$this->redirect ( 'Index/index' );
	}
	// 初始化操作
	function _initialize() {
		parent::_initialize();
	}
	
	/* 用户登录检测 */
	protected function login() {
		/* 用户登录检测 */
		is_login () || $this->error ( '110101:您还没有登录，请先登录！', U ( 'User/login' ) );
	}
}